<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="Cache-Control" content="no-siteapp">
    <meta name="viewport" content="width=device-width,initial-scale=1,maximum-scale=1,user-scalable=no">
    
    <meta name="referrer" content="no-referrer-when-downgrade">
    
    <meta name="renderer" content="webkit"/>
    <meta name="force-rendering" content="webkit"/>
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"/>
    <script>if (/*@cc_on!@*/false || (!!window.MSInputMethodContext && !!document.documentMode)) window.location.href="https://support.dmeng.net/upgrade-your-browser.html?referrer="+encodeURIComponent(window.location.href); </script>
    
    
        <link rel="preload" crossorigin="crossorigin" href="/fonts/roboto/Roboto-Regular.woff2" as="font">
        <link rel="preload" crossorigin="crossorigin" href="/fonts/roboto/Roboto-Bold.woff2" as="font">
    
    
    
        <link rel="shortcut icon" href="/icons/favicon.ico">
    

    
    
        
<link rel="stylesheet" href="/css/mdui.min.v1.0.0.css">

    
    
<link rel="stylesheet" href="/css/main.css">
<link rel="stylesheet" href="/css/iconfont.css">


    
    

    
        <script data-ad-client="ca-" async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
    












    
        <script>
  if (typeof MathJax === 'undefined') {
    window.MathJax = {
      loader: {
        
            load: ['[tex]/mhchem'],
        
        source: {
          '[tex]/amsCd': '[tex]/amscd',
          '[tex]/AMScd': '[tex]/amscd'
        }
      },
      tex: {
        inlineMath: {'[+]': [['$', '$']]},
        
            packages: {'[+]': ['mhchem']},
        
        tags: 'ams'
      },
      options: {
        renderActions: {
          findScript: [10, doc => {
            document.querySelectorAll('script[type^="math/tex"]').forEach(node => {
              const display = !!node.type.match(/; *mode=display/);
              const math = new doc.options.MathItem(node.textContent, doc.inputJax[0], display);
              const text = document.createTextNode('');
              node.parentNode.replaceChild(text, node);
              math.start = {node: text, delim: '', n: 0};
              math.end = {node: text, delim: '', n: 0};
              doc.math.push(math);
            });
          }, '', false],
          insertedScript: [200, () => {
            document.querySelectorAll('mjx-container').forEach(node => {
              let target = node.parentNode;
              if (target.nodeName.toLowerCase() === 'li') {
                target.parentNode.classList.add('has-jax');
              }
            });
          }, '', false]
        }
      }
    };
    (function () {
      var script = document.createElement('script');
      script.src = 'https://cdn.jsdelivr.net/npm/mathjax@3/es5/tex-mml-chtml.js';
      script.defer = true;
      document.head.appendChild(script);
    })();
  } else {
    MathJax.startup.document.state(0);
    MathJax.texReset();
    MathJax.typeset();
  }
</script>
          


    
    
    <title>
          
            吴豪阳的数据库
        
    </title>
    
    
<meta name="generator" content="Hexo 5.4.1"></head>
<body class="mdui-drawer-body-left mdui-appbar-with-toolbar mdui-theme-primary-teal mdui-theme-accent-blue">
  
  <header class="mdui-appbar mdui-appbar-fixed">
  <div id="toolbar" class="mdui-toolbar mdui-color-theme">
    <button class="mdui-btn mdui-btn-icon" mdui-drawer="{target: '#sidebar', swipe: true}"><i class="iconfont icon-menu"></i></button>
    <a href="/" class="mdui-typo-headline">吴豪阳的数据库</a>
    <a href="/" class="header-subtitle mdui-typo-headline"></a>
    <div class="mdui-toolbar-spacer"></div>
    <button class="mdui-btn mdui-btn-icon" mdui-dialog="{target: '#search'}" mdui-tooltip="{content: 'search'}"><i class="iconfont icon-search"></i></button>
  </div>
</header>

<div class="mdui-dialog" id="search">
  
    <div class="search-form">
      <input type="search" class="search-form-input" placeholder="请输入关键字" onfocus="listenSearchFunc()">
    </div>
    <div class="search-result" data-resource="/search.xml"></div>
  
</div>

  <aside id="sidebar" class="mdui-drawer">
    <div class="mdui-tab" mdui-tab>
        <a href="#sidebar-tab1" id="sidebartab" class="mdui-ripple mdui-tab-active">站点概览</a>
        <a href="#sidebar-tab2" id="sidebartab" class="mdui-ripple">关于</a>
    </div>

    
    <div id="sidebar-tab1" class="mdui-p-a-1">
        <div class="mdui-list">
            
                
                <a href="/" class="mdui-list-item mdui-ripple">
                    <div class="mdui-list-item-icon">
                        <i class="iconfont icon-home"></i>
                    </div>
                    <div class="mdui-list-item-content">主页</div>
                </a>
            
                
                <a href="/tags/" class="mdui-list-item mdui-ripple">
                    <div class="mdui-list-item-icon">
                        <i class="iconfont icon-bookmark"></i>
                    </div>
                    <div class="mdui-list-item-content">标签</div>
                </a>
            
                
                <a href="/categories/" class="mdui-list-item mdui-ripple">
                    <div class="mdui-list-item-icon">
                        <i class="iconfont icon-folder"></i>
                    </div>
                    <div class="mdui-list-item-content">分类</div>
                </a>
            
                
                <a href="/archives/" class="mdui-list-item mdui-ripple">
                    <div class="mdui-list-item-icon">
                        <i class="iconfont icon-archive"></i>
                    </div>
                    <div class="mdui-list-item-content">归档</div>
                </a>
            
                
                <a href="/tools/" class="mdui-list-item mdui-ripple">
                    <div class="mdui-list-item-icon">
                        <i class="iconfont icon-tools"></i>
                    </div>
                    <div class="mdui-list-item-content">工具箱</div>
                </a>
            
                
                <a href="/about/" class="mdui-list-item mdui-ripple">
                    <div class="mdui-list-item-icon">
                        <i class="iconfont icon-user"></i>
                    </div>
                    <div class="mdui-list-item-content">关于</div>
                </a>
            
            <div class="mdui-list-item mdui-ripple">
                <div class="mdui-list-item-icon">
                    <i class="iconfont icon-moon"></i>
                </div>
                <div class="mdui-list-item-content">夜间模式</div>
                <label class="mdui-switch" id="darkmode">
                  <input type="checkbox" id="nightmode_switch"/>
                  <i class="mdui-switch-icon"></i>
                </label>
            </div>           
        </div>
    </div>

    
    <div id="sidebar-tab2" class="mdui-p-a-1">
        <div class="sidebar-overview">
            <div class="sidebar-avatar">
                
                    <img src="/icons/avatar.gif"/>
                
            </div>
            <div class="sidebar-author-name">John Doe</div>
            <div class="sidebar-description"></div>
        </div>
        <div class="sidebar-links">
            
                
                <div class="mdui-chip">
                    <span class="mdui-chip-icon"><i class="iconfont icon-mail"></i></span>
                    <a href="mailto:xxx@xxx.com" class="mdui-chip-title">E-Mail</a>
                </div>
            
                
                <div class="mdui-chip">
                    <span class="mdui-chip-icon"><i class="iconfont icon-github"></i></span>
                    <a target="_blank" rel="noopener" href="https://your.url" class="mdui-chip-title">GitHub</a>
                </div>
            
                
                <div class="mdui-chip">
                    <span class="mdui-chip-icon"><i class="iconfont icon-steam"></i></span>
                    <a target="_blank" rel="noopener" href="https://your.url" class="mdui-chip-title">Steam</a>
                </div>
            
                
                <div class="mdui-chip">
                    <span class="mdui-chip-icon"><i class="iconfont icon-weibo"></i></span>
                    <a target="_blank" rel="noopener" href="https://your.url" class="mdui-chip-title">Weibo</a>
                </div>
            
        </div>
        <ul class="mdui-list" mdui-collapse="{accordion: true}">
            <li class="mdui-collapse-item">
                <div class="mdui-collapse-item-header mdui-list-item mdui-ripple">
                    <div class="mdui-list-item-icon">
                        <i class="iconfont icon-link"></i>
                    </div>
                    <div class="mdui-list-item-content">友情链接</div>
                    <div class="mdui-collapse-item-arrow">
                        <i class="mdui-list-item-icon iconfont icon-angle-down"></i>
                    </div>
                </div>
                <ul id="linksList" class="mdui-collapse-item-body mdui-list mdui-list-dense">
                    
                        <a target="_blank" rel="noopener" href="https://garybear.cn/hexo-theme-meadow/" class="mdui-list-item mdui-ripple">
                            Meadow说明文档
                        </a>
                    
                </ul>
            </li>
        </ul>
    </div>

    <div class="mdui-divider"></div>
    
    
</aside>
  
  <main id="main-contain" class="mdui-container mdui-m-t-5">
    
    <article class="mdui-card mdui-m-b-5 mdui-hoverable">    
      
      
        <div class="post-header"> 
  <a class="post-header-title" href="/2022/03/06/%E8%A1%8C%E4%B8%9A%E6%8A%A5%E5%91%8A/%E8%AE%A1%E7%AE%97%E4%B8%93%E4%B8%9A%E7%94%A8%E8%AF%AD/">计算机的专业用语</a>
  <div class="post-header-meta">
    <span>
      <span class="iconfont icon-calendar"></span>
      发布于:&nbsp;2022-03-06
    </span>
    <span>
      <span class="iconfont icon-calendar-check"></span>
      更新于:&nbsp;2022-03-06
    </span>
    <span>
      <span class="iconfont icon-folder"></span>
      分类于:&nbsp;<a class="category-link" href="/categories/%E5%88%86%E7%B1%BB/">分类</a>
    </span>
    
  </div>
</div>   
    



      
      
  <div class="post-tags">
    
      <i class="iconfont icon-tag">
        <a rel="tag" href = /tags/blog/ >blog</a>
      </i>
    
  </div>

      
      <div id="achieve-abstract" class="mdui-card-content mdui-p-x-4">
        <div class="post-abstract mdui-typo ">
          
            <p>硬件（hardware）</p>
<p>软件（software）</p>
<p>总线（bus）</p>
<p>中央处理器（Central Processing Unit，CPU）</p>
<p>控制单元（control unit）</p>
<p>算术/逻辑单元（arithmetic/logic unit）</p>
<p>比特（bite）</p>
<p>字节（byte）</p>
<p>编码模式（schema）</p>
<p>内存也被称为随机访问存储器（Random-Access Memory，RAM）</p>
<p>驱动器（drive）</p>
<p>硬盘（hard disk）</p...
          
        </div>
        
        <div style="text-align:center;">
          <a class="post-readmore mdui-btn mdui-ripple mdui-btn-raised" href="/2022/03/06/%E8%A1%8C%E4%B8%9A%E6%8A%A5%E5%91%8A/%E8%AE%A1%E7%AE%97%E4%B8%93%E4%B8%9A%E7%94%A8%E8%AF%AD/">阅读更多</a>
        </div>
      </div>
    </article>

    <article class="mdui-card mdui-m-b-5 mdui-hoverable">    
      
      
        <div class="post-header"> 
  <a class="post-header-title" href="/2022/03/06/%E8%A1%8C%E4%B8%9A%E6%8A%A5%E5%91%8A/%E8%AE%A1%E7%AE%97%E8%AE%A1%E7%9A%84%E4%B8%89%E5%A4%A7%E5%BA%94%E7%94%A8/">计算机网络的组成</a>
  <div class="post-header-meta">
    <span>
      <span class="iconfont icon-calendar"></span>
      发布于:&nbsp;2022-03-06
    </span>
    <span>
      <span class="iconfont icon-calendar-check"></span>
      更新于:&nbsp;2022-03-06
    </span>
    <span>
      <span class="iconfont icon-folder"></span>
      分类于:&nbsp;<a class="category-link" href="/categories/%E5%88%86%E7%B1%BB/">分类</a>
    </span>
    
  </div>
</div>   
    



      
      
  <div class="post-tags">
    
      <i class="iconfont icon-tag">
        <a rel="tag" href = /tags/blog/ >blog</a>
      </i>
    
  </div>

      
      <div id="achieve-abstract" class="mdui-card-content mdui-p-x-4">
        <div class="post-abstract mdui-typo ">
          
            <h2 id="计算机网络的组成"><a href="#计算机网络的组成" class="headerlink" title="计算机网络的组成"></a>计算机网络的组成</h2><p>计算机、网络操作系统、传输介质以及相应的应用软件四部分。</p>
<p> <code>1、计算机，俗称电脑，是现代一种用于高速计算的电子计算机器，可以进行数值计算，又可以进行逻辑计算，还具有存储记忆功能。是能够按照程序运行，自动、高速处理海量数据的现代化智能电子设备。</code></p>
<p> <code>2、网络操作系统 ，是一种能代替操作系统的软件程序，是网络的心脏和灵魂，是向网络计算机提供服务...
          
        </div>
        
        <div style="text-align:center;">
          <a class="post-readmore mdui-btn mdui-ripple mdui-btn-raised" href="/2022/03/06/%E8%A1%8C%E4%B8%9A%E6%8A%A5%E5%91%8A/%E8%AE%A1%E7%AE%97%E8%AE%A1%E7%9A%84%E4%B8%89%E5%A4%A7%E5%BA%94%E7%94%A8/">阅读更多</a>
        </div>
      </div>
    </article>

    <article class="mdui-card mdui-m-b-5 mdui-hoverable">    
      
      
        <div class="post-header"> 
  <a class="post-header-title" href="/2022/03/06/%E8%A1%8C%E4%B8%9A%E6%8A%A5%E5%91%8A/%E8%AE%A1%E7%AE%97%E6%9C%BA%E7%9A%84%E8%BF%91%E4%BB%A3%E5%8F%B2/">计算机的近代史</a>
  <div class="post-header-meta">
    <span>
      <span class="iconfont icon-calendar"></span>
      发布于:&nbsp;2022-03-06
    </span>
    <span>
      <span class="iconfont icon-calendar-check"></span>
      更新于:&nbsp;2022-03-06
    </span>
    <span>
      <span class="iconfont icon-folder"></span>
      分类于:&nbsp;<a class="category-link" href="/categories/%E5%88%86%E7%B1%BB/">分类</a>
    </span>
    
  </div>
</div>   
    



      
      
  <div class="post-tags">
    
      <i class="iconfont icon-tag">
        <a rel="tag" href = /tags/blog/ >blog</a>
      </i>
    
  </div>

      
      <div id="achieve-abstract" class="mdui-card-content mdui-p-x-4">
        <div class="post-abstract mdui-typo ">
          
            <h2 id="走进01时代"><a href="#走进01时代" class="headerlink" title="走进01时代"></a>走进01时代</h2><p> <code>首先 ，计算机发展到了上个世纪中后期，发生了一个重大的变化，那就是由传统的电机械结构转变为纯电路结构，其内部计数方式由10进制转变为2进制的过程。</code></p>
<h5 id="大致分为"><a href="#大致分为" class="headerlink" title="大致分为"></a>大致分为</h5><h4 id="机械继电器"><a href="#机械继电器" class="heade...
          
        </div>
        
        <div style="text-align:center;">
          <a class="post-readmore mdui-btn mdui-ripple mdui-btn-raised" href="/2022/03/06/%E8%A1%8C%E4%B8%9A%E6%8A%A5%E5%91%8A/%E8%AE%A1%E7%AE%97%E6%9C%BA%E7%9A%84%E8%BF%91%E4%BB%A3%E5%8F%B2/">阅读更多</a>
        </div>
      </div>
    </article>

    <article class="mdui-card mdui-m-b-5 mdui-hoverable">    
      
      
        <div class="post-header"> 
  <a class="post-header-title" href="/2022/03/04/%E6%80%BB%E4%BB%B7/computer%E6%96%B9%E6%B3%95/">computer总价的计算方式</a>
  <div class="post-header-meta">
    <span>
      <span class="iconfont icon-calendar"></span>
      发布于:&nbsp;2022-03-04
    </span>
    <span>
      <span class="iconfont icon-calendar-check"></span>
      更新于:&nbsp;2022-03-04
    </span>
    <span>
      <span class="iconfont icon-folder"></span>
      分类于:&nbsp;<a class="category-link" href="/categories/%E5%88%86%E7%B1%BB/">分类</a>
    </span>
    
  </div>
</div>   
    



      
      
  <div class="post-tags">
    
      <i class="iconfont icon-tag">
        <a rel="tag" href = /tags/blog/ >blog</a>
      </i>
    
  </div>

      
      <div id="achieve-abstract" class="mdui-card-content mdui-p-x-4">
        <div class="post-abstract mdui-typo ">
          
            <h2 id="代码如下"><a href="#代码如下" class="headerlink" title="代码如下"></a>代码如下</h2><figure class="highlight plaintext"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br><span class="line">11</span><br><span class="line">12</span><br><span class="line">13</span><br><span class="line">14</span><br><span class="line">15</span><br></pre></td><td class="code"><pre><span class="line">computer:&#123;</span><br><span class="line">  //首先定义一个名字</span><br><span class="line">  price()&#123;</span><br><span class="line"></span><br><span class="line">    //将得出来的值抛出</span><br><span class="line">    return  this.[].reduce((a,b)=&gt;&#123;</span><br><span class="line">      return a+b.(数量)*b.(单价)</span><br><span class="line">    &#125;)</span><br><span class="line">      //升级版的</span><br><span class="line">      return this.[].filter(item=&gt;item.(状态)).reduce((a,b)=&gt;&#123;</span><br><span class="line">        return a+b.(数量)*b.(单价)</span><br><span class="line">      &#125;)</span><br><span class="line"></span><br><span class="line">  &#125;</span><br><span class="line">&#125;</span><br></pre></td></tr></table></figure>
          
        </div>
        
        <div style="text-align:center;">
          <a class="post-readmore mdui-btn mdui-ripple mdui-btn-raised" href="/2022/03/04/%E6%80%BB%E4%BB%B7/computer%E6%96%B9%E6%B3%95/">阅读更多</a>
        </div>
      </div>
    </article>

    <article class="mdui-card mdui-m-b-5 mdui-hoverable">    
      
      
        <div class="post-header"> 
  <a class="post-header-title" href="/2022/03/01/%E6%8B%94%E5%8F%96%E4%BB%A3%E7%A0%81/%E6%8B%94%E4%BB%A3%E7%A0%81/">代码步骤</a>
  <div class="post-header-meta">
    <span>
      <span class="iconfont icon-calendar"></span>
      发布于:&nbsp;2022-03-01
    </span>
    <span>
      <span class="iconfont icon-calendar-check"></span>
      更新于:&nbsp;2022-03-01
    </span>
    <span>
      <span class="iconfont icon-folder"></span>
      分类于:&nbsp;<a class="category-link" href="/categories/%E5%88%86%E7%B1%BB/">分类</a>
    </span>
    
  </div>
</div>   
    



      
      
  <div class="post-tags">
    
      <i class="iconfont icon-tag">
        <a rel="tag" href = /tags/blog/ >blog</a>
      </i>
    
  </div>

      
      <div id="achieve-abstract" class="mdui-card-content mdui-p-x-4">
        <div class="post-abstract mdui-typo ">
          
            <figure class="highlight plaintext"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br><span class="line">11</span><br><span class="line">12</span><br><span class="line">13</span><br><span class="line">14</span><br><span class="line">15</span><br><span class="line">16</span><br><span class="line">17</span><br><span class="line">18</span><br><span class="line">19</span><br><span class="line">20</span><br><span class="line">21</span><br><span class="line">22</span><br><span class="line">23</span><br><span class="line">24</span><br><span class="line">25</span><br><span class="line">26</span><br><span class="line">27</span><br><span class="line">28</span><br><span class="line">29</span><br><span class="line">30</span><br><span class="line">31</span><br><span class="line">32</span><br><span class="line">33</span><br><span class="line">34</span><br><span class="line">35</span><br><span class="line">36</span><br><span class="line">37</span><br><span class="line">38</span><br><span class="line">39</span><br><span class="line">40</span><br><span class="line">41</span><br><span class="line">42</span><br><span class="line">43</span><br><span class="line">44</span><br><span class="line">45</span><br><span class="line">46</span><br><span class="line">47</span><br><span class="line">48</span><br><span class="line">49</span><br><span class="line">50</span><br><span class="line">51</span><br><span class="line">52</span><br><span class="line">53</span><br><span class="line">54</span><br><span class="line">55</span><br><span class="line">56</span><br><span class="line">57</span><br><span class="line">58</span><br><span class="line">59</span><br><span class="line">60</span><br><span class="line">61</span><br><span class="line">62</span><br><span class="line">63</span><br><span class="line">64</span><br><span class="line">65</span><br><span class="line">66</span><br><span class="line">67</span><br></pre></td><td class="code"><pre><span class="line">// 纯nodejs</span><br><span class="line">var fs = require(&quot;fs&quot;); // 读写文件的模块，属于nodejs内置的</span><br><span class="line">var path = require(&quot;path&quot;); // 操作路径的模块</span><br><span class="line">var Axios = require(&quot;axios&quot;); // axios可以运行在客户端和服务端</span><br><span class="line"></span><br><span class="line">// 1. 先读取json数据</span><br><span class="line">var data = fs.readFileSync(&quot;./pdd.json&quot;, &quot;utf-8&quot;);</span><br><span class="line">data = JSON.parse(data); //得到得数据是字符串  将它转换成数组</span><br><span class="line">// 1.1 先处理数据，把有thumb_url字段的数据全部提取出来，放到一个新的数组中</span><br><span class="line">// 2. 把图片全部找出来</span><br><span class="line">var originArr = data.result.map((item, index, arr) =&gt; &#123;</span><br><span class="line">  return &#123;</span><br><span class="line">    thumb_url: item.thumb_url,</span><br><span class="line">  &#125;;</span><br><span class="line">&#125;);</span><br><span class="line"></span><br><span class="line">// 3. 下载图片到本机：递归，即当第一个图下载完再下载第二个</span><br><span class="line">var flag = 0;</span><br><span class="line">async function downloadFile() &#123;</span><br><span class="line">  // 拿到原始的文件名</span><br><span class="line">  var fileurl = originArr[flag].thumb_url;</span><br><span class="line">  var url = fileurl,</span><br><span class="line">    filepath = &quot;./imgs&quot;,</span><br><span class="line">    //字符串的夜歌</span><br><span class="line">    name = fileurl.split(&quot;/&quot;).reverse()[0];</span><br><span class="line">  if (!fs.existsSync(filepath)) &#123;</span><br><span class="line">    fs.mkdirSync(filepath);</span><br><span class="line">  &#125;</span><br><span class="line">  const mypath = path.resolve(filepath, name);</span><br><span class="line">  const writer = fs.createWriteStream(mypath);</span><br><span class="line">  const response = await Axios(&#123;</span><br><span class="line">    url,</span><br><span class="line">    method: &quot;GET&quot;,</span><br><span class="line">    responseType: &quot;stream&quot;,</span><br><span class="line">  &#125;);</span><br><span class="line">  response.data.pipe(writer);</span><br><span class="line">  return new Promise((resolve, reject) =&gt; &#123;</span><br><span class="line">    writer.on(&quot;finish&quot;, resolve);</span><br><span class="line">    writer.on(&quot;error&quot;, reject);</span><br><span class="line">    flag++;</span><br><span class="line">    if (flag &lt; originArr.length) &#123;</span><br><span class="line">      console.log(&quot;下载第：&quot; + flag + &quot;张&quot;);</span><br><span class="line">      downloadFile();</span><br><span class="line">    &#125;</span><br><span class="line">  &#125;);</span><br><span class="line">&#125;</span><br><span class="line">// downloadFile();</span><br><span class="line">// 4. 洗数据，重新定义pdd.json</span><br><span class="line">var _json = data.result.map((item) =&gt; &#123;</span><br><span class="line">  var &#123;</span><br><span class="line">    goods_id,</span><br><span class="line">    short_name,</span><br><span class="line">    hd_thumb_url,</span><br><span class="line">    link_url,</span><br><span class="line">    hd_url,</span><br><span class="line">    scores,</span><br><span class="line">    ...reset</span><br><span class="line">  &#125; = item;</span><br><span class="line">  // 图片地址修改成本地的</span><br><span class="line">  return &#123;</span><br><span class="line">    ...reset,</span><br><span class="line">    thumb_url: &quot;/images/&quot; + reset.thumb_url.split(&quot;/&quot;).reverse()[0],</span><br><span class="line">  &#125;;</span><br><span class="line">&#125;);</span><br><span class="line">// 5. 操作mongodb数据库把处理后的数据存入</span><br><span class="line">var state = fs.writeFileSync(&quot;./pdd.json&quot;, JSON.stringify(_json), &quot;utf-8&quot;);</span><br><span class="line">console.log(state);</span><br></pre></td></tr></table></figure>
          
        </div>
        
        <div style="text-align:center;">
          <a class="post-readmore mdui-btn mdui-ripple mdui-btn-raised" href="/2022/03/01/%E6%8B%94%E5%8F%96%E4%BB%A3%E7%A0%81/%E6%8B%94%E4%BB%A3%E7%A0%81/">阅读更多</a>
        </div>
      </div>
    </article>

    <article class="mdui-card mdui-m-b-5 mdui-hoverable">    
      
      
        <div class="post-header"> 
  <a class="post-header-title" href="/2022/02/28/Mogoose/mogoosee%E9%85%8D%E7%BD%AE/">source</a>
  <div class="post-header-meta">
    <span>
      <span class="iconfont icon-calendar"></span>
      发布于:&nbsp;2022-02-28
    </span>
    <span>
      <span class="iconfont icon-calendar-check"></span>
      更新于:&nbsp;2022-02-28
    </span>
    <span>
      <span class="iconfont icon-folder"></span>
      分类于:&nbsp;<a class="category-link" href="/categories/%E5%88%86%E7%B1%BB/">分类</a>
    </span>
    
  </div>
</div>   
    



      
      
  <div class="post-tags">
    
      <i class="iconfont icon-tag">
        <a rel="tag" href = /tags/blog/ >blog</a>
      </i>
    
  </div>

      
      <div id="achieve-abstract" class="mdui-card-content mdui-p-x-4">
        <div class="post-abstract mdui-typo ">
          
            <p> <code>下载mongoose的软件  和他的插接</code></p>
<h3 id="创建数据的"><a href="#创建数据的" class="headerlink" title="创建数据的"></a>创建数据的</h3><figure class="highlight plaintext"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br></pre></td><td class="code"><pre><span class="line">//在终端  执行一下代码</span><br><span class="line">npm init -y</span><br><span class="line"></span><br><span class="line">//在下载</span><br><span class="line"></span><br><span class="line">npm i mongoose </span><br><span class="line"></span><br><span class="line">//下载 后端框架</span><br><span class="line"></span><br><span class="line">npm i express</span><br></pre></td></tr></table></figure>
          
        </div>
        
        <div style="text-align:center;">
          <a class="post-readmore mdui-btn mdui-ripple mdui-btn-raised" href="/2022/02/28/Mogoose/mogoosee%E9%85%8D%E7%BD%AE/">阅读更多</a>
        </div>
      </div>
    </article>

    <article class="mdui-card mdui-m-b-5 mdui-hoverable">    
      
      
        <div class="post-header"> 
  <a class="post-header-title" href="/2022/02/27/%E5%AD%97%E7%AC%A6%E4%B8%B2/%E5%AD%97%E7%AC%A6%E4%B8%B2%E7%9A%84%E6%96%B9%E6%B3%95/">字符串的方法</a>
  <div class="post-header-meta">
    <span>
      <span class="iconfont icon-calendar"></span>
      发布于:&nbsp;2022-02-27
    </span>
    <span>
      <span class="iconfont icon-calendar-check"></span>
      更新于:&nbsp;2022-02-27
    </span>
    <span>
      <span class="iconfont icon-folder"></span>
      分类于:&nbsp;<a class="category-link" href="/categories/%E5%88%86%E7%B1%BB/">分类</a>
    </span>
    
  </div>
</div>   
    



      
      
  <div class="post-tags">
    
      <i class="iconfont icon-tag">
        <a rel="tag" href = /tags/blog/ >blog</a>
      </i>
    
  </div>

      
      <div id="achieve-abstract" class="mdui-card-content mdui-p-x-4">
        <div class="post-abstract mdui-typo ">
          
            <h2 id="字符串的方法"><a href="#字符串的方法" class="headerlink" title="字符串的方法"></a>字符串的方法</h2><h2 id="charAt-方法从一个字符串中返回某个下标上的字符"><a href="#charAt-方法从一个字符串中返回某个下标上的字符" class="headerlink" title="charAt( ) 方法从一个字符串中返回某个下标上的字符"></a>charAt( ) 方法从一个字符串中返回某个下标上的字符</h2><h2 id="concat-方法将一个或多个字符串与原字符串连接合并，形成一个新的字符串...
          
        </div>
        
        <div style="text-align:center;">
          <a class="post-readmore mdui-btn mdui-ripple mdui-btn-raised" href="/2022/02/27/%E5%AD%97%E7%AC%A6%E4%B8%B2/%E5%AD%97%E7%AC%A6%E4%B8%B2%E7%9A%84%E6%96%B9%E6%B3%95/">阅读更多</a>
        </div>
      </div>
    </article>

    <article class="mdui-card mdui-m-b-5 mdui-hoverable">    
      
      
        <div class="post-header"> 
  <a class="post-header-title" href="/2022/02/25/vue%E6%9D%82%E7%89%A9/axios%E7%9A%84%E5%B0%81%E8%A3%85/">Axios 的封装</a>
  <div class="post-header-meta">
    <span>
      <span class="iconfont icon-calendar"></span>
      发布于:&nbsp;2022-02-25
    </span>
    <span>
      <span class="iconfont icon-calendar-check"></span>
      更新于:&nbsp;2022-02-25
    </span>
    <span>
      <span class="iconfont icon-folder"></span>
      分类于:&nbsp;<a class="category-link" href="/categories/%E5%88%86%E7%B1%BB/">分类</a>
    </span>
    
  </div>
</div>   
    



      
      
  <div class="post-tags">
    
      <i class="iconfont icon-tag">
        <a rel="tag" href = /tags/blog/ >blog</a>
      </i>
    
  </div>

      
      <div id="achieve-abstract" class="mdui-card-content mdui-p-x-4">
        <div class="post-abstract mdui-typo ">
          
            <h2 id="第一步是-在终端-npm-i-axios-一下"><a href="#第一步是-在终端-npm-i-axios-一下" class="headerlink" title="第一步是 在终端 npm i axios 一下"></a>第一步是 在终端 npm i axios 一下</h2><h2 id="第二步-在项目的src文件中的-创建一个request文件夹当中配置-js文件-如图"><a href="#第二步-在项目的src文件中的-创建一个request文件夹当中配置-js文件-如图" class="headerlink" title="第二步 在项目的src文件中...
          
        </div>
        
        <div style="text-align:center;">
          <a class="post-readmore mdui-btn mdui-ripple mdui-btn-raised" href="/2022/02/25/vue%E6%9D%82%E7%89%A9/axios%E7%9A%84%E5%B0%81%E8%A3%85/">阅读更多</a>
        </div>
      </div>
    </article>

    <article class="mdui-card mdui-m-b-5 mdui-hoverable">    
      
      
        <div class="post-header"> 
  <a class="post-header-title" href="/2022/02/25/css/REM%E7%9A%84%E9%85%8D%E7%BD%AE/">REM的配置</a>
  <div class="post-header-meta">
    <span>
      <span class="iconfont icon-calendar"></span>
      发布于:&nbsp;2022-02-25
    </span>
    <span>
      <span class="iconfont icon-calendar-check"></span>
      更新于:&nbsp;2022-02-25
    </span>
    <span>
      <span class="iconfont icon-folder"></span>
      分类于:&nbsp;<a class="category-link" href="/categories/%E5%88%86%E7%B1%BB/">分类</a>
    </span>
    
  </div>
</div>   
    



      
      
  <div class="post-tags">
    
      <i class="iconfont icon-tag">
        <a rel="tag" href = /tags/blog/ >blog</a>
      </i>
    
  </div>

      
      <div id="achieve-abstract" class="mdui-card-content mdui-p-x-4">
        <div class="post-abstract mdui-typo ">
          
            <h2 id="首先在编译器当中下一个-Px-to-Rem-的插件-如图"><a href="#首先在编译器当中下一个-Px-to-Rem-的插件-如图" class="headerlink" title="首先在编译器当中下一个 Px to Rem 的插件 如图"></a>首先在编译器当中下一个 Px to Rem 的插件 如图</h2><p><img src="/img/rem.png" alt="img"></p>
<h2 id="在想要使用rem-的-vue文件夹中配置"><a href="#在想要使用rem-的-vue文件夹中配置" class="headerlink" tit...
          
        </div>
        
        <div style="text-align:center;">
          <a class="post-readmore mdui-btn mdui-ripple mdui-btn-raised" href="/2022/02/25/css/REM%E7%9A%84%E9%85%8D%E7%BD%AE/">阅读更多</a>
        </div>
      </div>
    </article>

    <article class="mdui-card mdui-m-b-5 mdui-hoverable">    
      
      
        <div class="post-header"> 
  <a class="post-header-title" href="/2022/02/25/AJAX/ajax%E7%9A%84%E5%B0%81%E8%A3%85/">AJAX 的封装</a>
  <div class="post-header-meta">
    <span>
      <span class="iconfont icon-calendar"></span>
      发布于:&nbsp;2022-02-25
    </span>
    <span>
      <span class="iconfont icon-calendar-check"></span>
      更新于:&nbsp;2022-03-04
    </span>
    <span>
      <span class="iconfont icon-folder"></span>
      分类于:&nbsp;<a class="category-link" href="/categories/%E5%88%86%E7%B1%BB/">分类</a>
    </span>
    
  </div>
</div>   
    



      
      
  <div class="post-tags">
    
      <i class="iconfont icon-tag">
        <a rel="tag" href = /tags/blog/ >blog</a>
      </i>
    
  </div>

      
      <div id="achieve-abstract" class="mdui-card-content mdui-p-x-4">
        <div class="post-abstract mdui-typo ">
          
            <h2 id="AJAX封装-所谓的封装-值得就是-它的五个步骤"><a href="#AJAX封装-所谓的封装-值得就是-它的五个步骤" class="headerlink" title="AJAX封装 所谓的封装 值得就是 它的五个步骤"></a>AJAX封装 所谓的封装 值得就是 它的五个步骤</h2><p> <code>第一步 首先创建一个XMLHttpRequest() 对象代码如下</code></p>
<figure class="highlight plaintext"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">`var xhr = new XMLHttpRequest()`</span><br></pre></td></tr></table></figure>
          
        </div>
        
        <div style="text-align:center;">
          <a class="post-readmore mdui-btn mdui-ripple mdui-btn-raised" href="/2022/02/25/AJAX/ajax%E7%9A%84%E5%B0%81%E8%A3%85/">阅读更多</a>
        </div>
      </div>
    </article>



  <nav style="text-align: center;">
    <div class="pagination">
      <a class="extend prev" rel="prev" href="/page/2/"><i class="iconfont icon-angle-left"></i></a><a class="page-number" href="/">1</a><a class="page-number" href="/page/2/">2</a><span class="page-number current">3</span><a class="page-number" href="/page/4/">4</a><a class="page-number" href="/page/5/">5</a><a class="extend next" rel="next" href="/page/4/"><i class="iconfont icon-angle-right"></i></a>
    </div>
  </nav>

  </main>
  <footer id="footer" class="mdui-text-center mdui-m-t-5 mdui-p-b-2 mdui-p-t-4 mdui-color-theme">
  <div class="mdui-container">
    <div class="mdui-row">
      
        <a href="https://beian.miit.gov.cn" rel="noopener" target="_blank"></a>
      
      <span>
        &copy; 2015 - 2022 
        
          <span style="color:#d9333f" class="iconfont icon-heart"></span>
        
        John Doe
      </span>
    </div>
    <div class="mdui-row">
      
        <div class="mdui-col-xs-6 mdui-text-right">
          <span>Powered by <a href="https://hexo.io/" rel="noopener" target="_blank">Hexo</a></span>
        </div>
        <div class="mdui-col-xs-6 mdui-text-left">
          <span>Theme: <a href="https://github.com/kb1000fx/Meadow" rel="noopener" target="_blank">Meadow</a></span>
        </div>
      
    </div>
    <div class="mdui-row">
      
        <div class="mdui-col-xs-6 mdui-text-right">
          <span id="busuanzi_container_site_uv" style="display: none;"> <span class="iconfont icon-user"></span>总访客量 <span id="busuanzi_value_site_uv"></span></span>
        </div>
        <div class="mdui-col-xs-6 mdui-text-left">
          <span id="busuanzi_container_site_pv" style="display: none;"> <span class="iconfont icon-eye"></span>总访问量 <span id="busuanzi_value_site_pv"></span></span>
        </div>
      
    </div>
 </div>
</footer>
  
  <button id="gotop" class="mdui-fab mdui-fab-fixed mdui-fab-hide mdui-ripple mdui-color-teal" style="z-index:100;"><i class="iconfont icon-arrowup"></i></button>
  
  

    <script async src="https://busuanzi.ibruce.info/busuanzi/2.3/busuanzi.pure.mini.js"></script>







    
<script src="/js/mdui.min.v1.0.0.js"></script>




<script src="/js/meadow.js"></script>

</body>
</html >